package piece;
/*
 * Justin Prentice
 * TCSS 305 (winter quarter)
 * Tetris program - L Piece
 */

/**
 * A class representing a L piece on a tetris board.
 * @author Justin Prentice
 * @version 1.0
 */
public class LPiece extends AbstractPiece
{
  /**
   * An array representing all possible rotations of an L Piece.
   */
  private static boolean[][][] my_rotations = {{{true, true, true, false}, 
                                                {true, false, false, false}, 
                                                {false, false, false, false}, 
                                                {false, false, false, false}}, 

                                               {{false, true, true, false}, 
                                                {false, false, true, false}, 
                                                {false, false, true, false}, 
                                                {false, false, false, false}},
                                                
                                               {{false, false, true, false}, 
                                                {true, true, true, false}, 
                                                {false, false, false, false}, 
                                                {false, false, false, false}},
                                              
                                               {{true, false, false, false}, 
                                                {true, false, false, false}, 
                                                {true, true, false, false}, 
                                                {false, false, false, false}}};
  /**
   * Constructs an L piece at 0,0.
   */
  public LPiece()
  {
    super(0, 0, my_rotations);
  }
  
  /**
   * {@inheritDoc}
   */
  @Override
  public LPiece clone() throws CloneNotSupportedException
  {
    return (LPiece) super.clone();
  }
  
}
